package com.xcc.strategypattern.demo03;

/**
 * @Description: 职责描述
 * @Author: xiechuang
 * @Date: 2022/5/20
 */
public class RubberDuck extends Duck {

    public RubberDuck() {
        quackBehavior = new Squeak();
        flyBehavior = new FlyNoWay();
    }

    @Override
    public void display() {
        System.out.println("I'm real RubberDuck duck");
    }

}
